package com.java.star.mall.front.properties;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 线程池核心参数配置类
 */
@Component
@ConfigurationProperties(prefix = "starmall.thread")
@Data
public class ThreadPoolExecutorProperties {

    //核心线程数
    private Integer corePoolSize;

    //最大线程数
    private Integer maximumPoolSize;

    //非核心线程数的最大空闲时间，单位秒
    private Integer keepAliveTime;

    //阻塞队列大小
    private Integer capacity;
}
